//2：将一个正整数分解质因数。例如：输入90,打印出90=2*3*3*5。
package ZUOYE0421;

import java.util.Scanner;

public class 更改作业2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("输入一个数：");
		int num = in.nextInt();
		System.out.print(num + "=");
		int a = 2;
		while (num != a) {
			if (num % a == 0) {
				num = num / a;
				System.out.print(a + "*");
			} else {
				a++;
			}
		}
		System.out.print(num + "。");

	}
}
